<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateWorkSubworkTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('work_subwork', function(Blueprint $table)
		{
            $table->engine = 'InnoDB';
			$table->uuid('id')->primary('id');
			$table->uuid('task_id')->comment('主任务ID');
			$table->uuid('subtask_id')->comment('子任务ID');
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('work_subwork');
	}

}
